#ifndef __LCOINWIDGET_H__
#define __LCOINWIDGET_H__

#include <QtGui>

class LCoinWidget : public QFrame
{
    Q_OBJECT

public:
    /* ENUMS */
    enum CoinType {Slag = 0, Danar, Crown, Orb};
    
    /* INTERFACE */
    LCoinWidget ( QWidget * parent = 0, Qt::WFlags f = 0 );
    LCoinWidget ( QWidget * parent = 0, Qt::WFlags f = 0, int coinType = 0);
    QString text() const;
    int type() const;
    void setType(int type);
    int value() const;
    void setValue(int i);
    int slagValue() const;
    void add(int i);
    
private:
    /* WIDGETS */
    QSpinBox *ndisplay;
    QLabel *tdisplay;
    
    /* DATA MEMBERS */
    int m_cointype;
    int m_value;
    QWidget *m_parent;
    Qt::WFlags m_flags;

private slots:
    void slotValueChanged(int val);
    
signals:
    void valueChanged();
};

#endif  // __LCOINWIDGET_H__
